#!/bin/bash
# Common environment settings, to be sourced
# by experiments.

BASEDIR=/global/homes/d/dang/src/mtags-amqp
PATH=$BASEDIR/exp/bin:$BASEDIR/src:$PATH

DATADIR=$PBS_O_WORKDIR/data
SERVER_HOST_FILE=$DATADIR/rabbitmq-server.host

###################
# RabbitMQ
###################
RMQDIR=$BASEDIR/exp/rabbitmq

# RABBITMQ_CONFIG_FILE
# Defaults to /etc/rabbitmq/rabbitmq.
export RABBITMQ_CONFIG_FILE=$RMQDIR/etc/rabbitmq

# RABBITMQ_MNESIA_BASE
# Defaults to /var/lib/rabbitmq/mnesia. Set this to the directory where Mnesia database files should be placed. 
export RABBITMQ_MNESIA_BASE=$RMQDIR/mnesia

# RABBITMQ_LOG_BASE
#  Defaults to /var/log/rabbitmq. Log files generated by the server will be placed in this directory. 
export RABBITMQ_LOG_BASE=$RMQDIR/log
